package com.csthink.auditlog.repository.impl;

import com.csthink.auditlog.domain.AuditLog;
import com.csthink.auditlog.domain.ScrollAuditLogs;
import com.csthink.auditlog.dto.AuditLogQueryParamDTO;
import com.csthink.auditlog.dto.PageResultDTO;
import com.csthink.auditlog.repository.AbstractEsAuditLogRepository;
import com.csthink.auditlog.repository.AuditLogRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import java.io.IOException;
import java.util.List;

/**
 * @author <a href="mailto:security.2009@live.cn">Mars</a>
 * @since 2023-09-12
 */
@Repository
@Qualifier("webEsAuditLogRepository")
@Slf4j
public class WebEsAuditLogRepositoryImpl extends AbstractEsAuditLogRepository implements AuditLogRepository {

    @Override
    public AuditLog save(AuditLog auditLog) throws IOException {
        return super.save(auditLog);
    }

    @Override
    public List<String> batchSave(List<AuditLog> auditLogList) throws IOException {
        return super.batchSave(auditLogList);
    }

    @Override
    public AuditLog findById(String id) throws IOException {
        return null;
    }

    @Override
    public PageResultDTO<AuditLog> query(AuditLogQueryParamDTO queryParam) throws IOException {
        return null;
    }

    @Override
    public ScrollAuditLogs scrollAuditLog(AuditLogQueryParamDTO queryParam) throws IOException {
        return null;
    }
}
